const { ModuleFilenameHelpers } = require('webpack')
const config = require('./webpack.common')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const {merge} = require('webpack-merge')

// merge 会自动处理合并逻辑，plugins 不会覆盖 webpack.common.js 的内容
module.exports = merge(config, {
    mode: "production",
    devtool: false,
    plugins: [
        new CleanWebpackPlugin()
    ]
})